<template>
   <RouterView></RouterView>

</template>

<script setup lang="ts">
import { onBeforeMount } from 'vue';
import { useRouter } from 'vue-router';

const router = useRouter();

onBeforeMount(()=>{
   if(!localStorage.getItem("userId")){
      router.push({name:'denglu'})
   }
})
</script>